package com.michale.system.vo.login;

import com.michale.common.domain.permissions.UserEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Set;

/**
 * @Author Michale
 * @apiNote 登录信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "InfoVo: 用户信息详情")
public class InfoVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户信息")
    private UserEntity user;

    @ApiModelProperty("角色信息")
    private Set<String> roles;

    @ApiModelProperty("权限标识符")
    private Set<String> permissions;

    @ApiModelProperty("网站名")
    private String title;

    @ApiModelProperty("网站Logo")
    private String logo;
}
